<%@ page contentType="text/html; charset=UTF-8" language="java" import="com.util.*,java.util.*" errorPage="/error.jsp" %>
<div id=header>
<div id=blogname><%=ui.getBlogName()%>
<div id=blogTitle><%=ui.getBlogMemo()%></div></div>
<div id=menu>
<div id=Left></div>
<div id=Right></div>
<UL>
  <li class=menuL></li>
  <li><a class=menuA href="<%=request.getContextPath() %>/blog/<%=username%>/">首页</a></li>
  <li class=menuDiv></li>
  <li><A class=menuA href="<%=request.getContextPath() %>/show/<%=username%>/">日志</A></li>  
  <li class=menuDiv></li>
  <li><A class=menuA href="<%=request.getContextPath() %>/photolist/<%=username%>/">相册</A></li>
  <li class=menuDiv></li>
  <li><A class=menuA href="<%=request.getContextPath() %>/music/<%=username%>/">音乐</a></li>
  <li class=menuDiv></li>
  <li><A class=menuA href="<%=request.getContextPath() %>/about/<%=username%>/">关于</a></li>
  <li class=menuR></li>
<%
	if(username.equals((String)session.getAttribute("login_user"))){
%>
  <li><A class=menuA href="<%=request.getContextPath() %>/manage/<%=username%>/">管理</a></li>
  <li class=menuR></li>
  <%}else{%>
   <li><A class=menuA href="<%=request.getContextPath() %>/feed/<%=username%>/">RSS</a></li>
  <li class=menuR></li>
  <%
  	}	
  %>
</UL></div>
  </div>
<div id=login>
<%
  if(session.getAttribute("login_user")==null){
%>您还未登录，请<a  href="<%=request.getContextPath() %>/user/login.jsp">登录</a>&nbsp;|&nbsp;<a href="javascript:window.external.addFavorite('<%=com.config.SystemGlobals.getValue("web_domain")%>/blog/<%=username%>', '<%=ui.getBlogName()%>的博客')" >收藏</a>|&nbsp;<a  href="<%=request.getContextPath() %>">返回主页</a>
<%   } else { %>
	欢迎您，<b><%=session.getAttribute("login_user")%></b>&nbsp;<a href="<%=request.getContextPath() %>/user/logout.jsp">退出</a>
	|&nbsp;<a href="<%=request.getContextPath() %>/user/addlog.jsp" >写新文章</a>|&nbsp;<a  href="<%=request.getContextPath() %>">返回主页</a>&nbsp;
	<%if(!username.equals((String)session.getAttribute("login_user"))){%>|&nbsp;
	<a href="<%=request.getContextPath() %>/blog/<%=session.getAttribute("login_user")%>">进入自己的博客</a>
	<%
	}
	}
%></div>